export default defineAppConfig({
  pages: [
    'pages/index/index',
    'pages/order/index',
    'pages/my/index',
    'pages/browser/index',
    'pages/booking/index',
    'pages/address/list',
    'pages/address/edit',
    'pages/car/list',
    'pages/car/edit',
    'pages/coupon/index',
    'pages/goods/detail',
    'pages/invite/index',
    'pages/join/index',
    'pages/my/complaint',
    'pages/my/coupon',
    'pages/my/settings',
    'pages/my/wallet',
    'pages/order/detail',
  ],
  window: {
    backgroundColor: '#f8f8f8',
    backgroundTextStyle: 'light',
    navigationBarBackgroundColor: '#fff',
    navigationBarTitleText: 'Auto Clean',
    navigationBarTextStyle: 'black',
  },
  tabBar: {
    color: '#8a8a8a',
    borderStyle: 'black',
    selectedColor: '#4c7bee',
    backgroundColor: '#ffffff',
    list: [
      {
        text: '首页',
        pagePath: 'pages/index/index',
        iconPath: 'assets/tabbar/home.png',
        selectedIconPath: 'assets/tabbar/home_selected.png',
      },
      {
        text: '订单',
        pagePath: 'pages/order/index',
        iconPath: 'assets/tabbar/order.png',
        selectedIconPath: 'assets/tabbar/order_selected.png',
      },
      {
        text: '我的',
        pagePath: 'pages/my/index',
        iconPath: 'assets/tabbar/my.png',
        selectedIconPath: 'assets/tabbar/my_selected.png',
      },
    ],
  },
  permission: {
    'scope.userLocation': {
      desc: '我们将使用您的位置信息，以便更好的为您提供服务',
    },
  },
  requiredPrivateInfos: ['chooseAddress', 'chooseLocation', 'getLocation'],
})
